//
//  SEGShareViewController.h
//  ExcellentHome
//
//  Created by 揭婧雯 on 2017/3/1.
//  Copyright © 2017年 陈区. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "SEGShareHelpCardModel.h"
#import "SEGShareViewModel.h"

#if __has_include(<SEGPlatform/SEGBussinessConstHeader.h>)
#import <SEGPlatform/SEGBussinessConstHeader.h>
#else
#import "SEGBussinessConstHeader.h"
#endif

typedef void(^SharedVCDismissBlock)(void);
typedef void(^SEGActionTypeBlock)(NSInteger actionType);
typedef void(^SEGChannelBlock)(NSString *channel);

/**
 分享到短信代理
 */
@protocol SEGShareVCDelegate <NSObject>
@optional
- (void)shareVCActionButtonPressedWithType:(SEGShareVCActionType)actionType;
//分享渠道:10 微信 20朋友圈 30 qq 40 微博 50二维码
- (void)shareVCActionButtonPressedWithChannel:(NSString *)channel;
@end



@interface SEGShareViewController : UIViewController
@property (nonatomic, copy)SEGActionTypeBlock actionTypeBlock;
@property (nonatomic, copy)SEGChannelBlock channelBlock;
/** 页面消失后的回调 */
@property (nonatomic, copy) SharedVCDismissBlock dismissBlock;
@property(nonatomic, weak) id<SEGShareVCDelegate> delegate;

@property(nonatomic, strong) SEGShareViewModel *viewModel;

- (instancetype)initWithViewModel:(SEGShareViewModel*)viewModel;
@end
